function [dataX, dataY] = translateUsingData (n, relX, relY, ind)
[~, len] = size (n);
ts = n + 1;
dataX = zeros (len,len);
dataY = zeros (len,len);
for i = 1:len
    for j = 1:len
        if (ts(i,j) == 0)
            dataX(i,j) = -1;
            dataY(i,j) = -1;
        else
            dataX(i,j) = relX (ind (ts(i,j)), ind (ts(j,i)));
            dataY(i,j) = relY (ind (ts(i,j)), ind (ts(j,i)));
        end
    end
end
